# $< stand for the first file of prerequirefiles
# $@ stand for the target files
# $^ stand for all of the prerequirefiles
# %.o:%.cpp stand for the files which replace the %.o's suffix with .cpp
# use -gstabs+ or -gdwarf-2 to get more debug info ??
export MAKEROOT := ../..

STATICLIB := libIMMsgBusParam.a
PARAMOBJS := IMMessageParam.o IMContactParam.o IMTribeParam.o IMFileTransferParam.o
export SRCFILES := $(wildcard *.cpp)

include $(MAKEROOT)/template.mk

STATICLIB_PATH := $(LIBDIR)/$(STATICLIB)
PARAMOBJS_PATH := $(PARAMOBJS:%=$(OBJDIR)/%)

all: $(STATICLIB_PATH)

$(STATICLIB_PATH) : $(PARAMOBJS_PATH)
	$(AR) $(ARFLAGS) $@ $^

clean:
	-rm -f *.d  $(PARAMOBJS_PATH) $(STATICLIB_PATH)
